/*     */ package eos.moe.dragoncore;
/*     */ 
/*     */ import java.util.Locale;
/*     */ import net.minecraft.client.renderer.OpenGlHelper;
/*     */ import net.minecraft.entity.EntityLivingBase;
/*     */ import org.yaml.snakeyamla.configuration.ConfigurationSection;
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ public class gx
/*     */   extends rq
/*     */ {
/*     */   private bh r;
/*     */   private bh f;
/*     */   private bh s;
/*     */   private bh m;
/*     */   private bh l;
/*     */   private bh t;
/*     */   private bh d;
/*     */   
/*     */   public gx(wo wo1, ConfigurationSection configurationSection) {
/*  24 */     super(wo1, configurationSection);
/*  25 */     this.r = wo1.v(configurationSection.getString("texture", "unknown.png"));
/*  26 */     this.m = wo1.v(configurationSection.get("u", Integer.valueOf(0)));
/*  27 */     this.l = wo1.v(configurationSection.get("v", Integer.valueOf(0)));
/*  28 */     this.f = wo1.v(configurationSection.get("width", Integer.valueOf(0)));
/*  29 */     this.s = wo1.v(configurationSection.get("height", Integer.valueOf(0)));
/*  30 */     if (configurationSection.contains("textureWidth")) {
/*  31 */       this.t = wo1.v(configurationSection.get("textureWidth", Integer.valueOf(0)));
/*     */     } else {
/*  33 */       this.t = this.f;
/*     */     } 
/*  35 */     if (configurationSection.contains("textureHeight")) {
/*  36 */       this.d = wo1.v(configurationSection.get("textureHeight", Integer.valueOf(0)));
/*     */     } else {
/*  38 */       this.d = this.s;
/*     */     } 
/*     */   }
/*     */ 
/*     */ 
/*     */   
/*     */   public void v(EntityLivingBase entityLivingBase, float f, boolean bool) {
/*  45 */     hw.v(this.r.z());
/*     */     
/*  47 */     if (this.g.z()) {
/*  48 */       float f1 = OpenGlHelper.lastBrightnessX;
/*  49 */       float f2 = OpenGlHelper.lastBrightnessY;
/*     */       
/*  51 */       OpenGlHelper.func_77475_a(OpenGlHelper.field_77476_b, 240.0F, f2);
/*  52 */       jo.v(0.0D, 0.0D, this.m.z(), this.l.z(), this.f.z(), this.s.z(), this.t.z(), this.d.z());
/*  53 */       OpenGlHelper.func_77475_a(OpenGlHelper.field_77476_b, f1, f2);
/*     */     } else {
/*  55 */       jo.v(0.0D, 0.0D, this.m.z(), this.l.z(), this.f.z(), this.s.z(), this.t.z(), this.d.z());
/*     */     } 
/*     */   }
/*     */ 
/*     */ 
/*     */   
/*     */   public void v(String str, Object object) {
/*  62 */     switch (str.toLowerCase(Locale.ROOT)) {
/*     */       case "texture":
/*  64 */         this.r = this.t.v((String)object);
/*     */         return;
/*     */       case "width":
/*  67 */         this.f = this.t.v(object);
/*     */         return;
/*     */       case "height":
/*  70 */         this.s = this.t.v(object);
/*     */         return;
/*     */       case "u":
/*  73 */         this.m = this.t.v(object);
/*     */         return;
/*     */       case "v":
/*  76 */         this.l = this.t.v(object);
/*     */         return;
/*     */       case "texturewidth":
/*  79 */         this.t = this.t.v(object);
/*     */         return;
/*     */       case "textureheight":
/*  82 */         this.d = this.t.v(object);
/*     */         return;
/*     */     } 
/*     */     
/*  86 */     super.v(str, object);
/*     */   }
/*     */ 
/*     */   
/*     */   public Object v(String str) {
/*  91 */     switch (str.toLowerCase(Locale.ROOT)) {
/*     */       case "texture":
/*  93 */         return this.r.z();
/*     */       case "width":
/*  95 */         return this.f.z();
/*     */       case "height":
/*  97 */         return this.s.z();
/*     */       case "u":
/*  99 */         return this.m.z();
/*     */       case "v":
/* 101 */         return this.l.z();
/*     */       case "texturewidth":
/* 103 */         return this.t.z();
/*     */       case "textureheight":
/* 105 */         return this.d.z();
/*     */     } 
/*     */     
/* 108 */     return super.v(str);
/*     */   }
/*     */ }


/* Location:              D:\fanbian\[D][龙之核心]DragonCore-2.6.0.3.jar!\eos\moe\dragoncore\gx.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */